LC_CMD_INSERT Home

LC_CMD_INSERT is a value for Command parameter of the lcWndExeCommand function. It starts interactive tool to add Block reference objects into a drawing.
CmdParam parameter can have the following values to activate specific modes:

Prm Mode
0 Start command with previous mode
LC_INSERT_DLG With dialog "Insert Block"
LC_INSERT_NODLG Without dialog "Insert Block".
All parameters for the insertion will be set programmatically (see below)
LC_INSERT_RESET Reset default mode to LC_INSERT_DLG state

When you run the command without a dialog, you can set required parameters by the following properties:
(Parameter hObject must be set to zero)

Property Type Access Meaning
LC_PROP_BLKREF_BLOCK handle RW Handle to the Block to be inserted
LC_PROP_BLKREF_X float RW Insertion point X
LC_PROP_BLKREF_Y float RW Insertion point Y
LC_PROP_BLKREF_SCALE float RW Uniform scale
LC_PROP_BLKREF_SCX float RW Scale X
LC_PROP_BLKREF_SCY float RW Scale Y
LC_PROP_BLKREF_ANGLE float RW Rotation angle
LC_PROP_BLKREF_ONS_XY bool RW Specify the position interactively (on screen)
LC_PROP_BLKREF_ONS_SCALE bool RW Specify the scale interactively (on screen)
LC_PROP_BLKREF_ONS_ANGLE bool RW Specify the rotation angle interactively (on screen)
LC_PROP_BLKREF_RETURN handle R Handle to inserted object (block reference) after command execution


See Also

  Code sample,   Command interface